home *** CD-ROM | disk | FTP | other *** search
/ Delphi 2 - Developers' Solutions / Delphi 2 Developers' Solutions.iso / dds / comps / gadgets / delphi10 / ulbitmap / ulbmptst.pas < prev   
Encoding:
Pascal/Delphi Source File  |  1996-06-16  |  835 b   |  39 lines

  1. unit Ulbmptst;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, Ulbitmap;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     UnlimitedBitmap1: TUnlimitedBitmap;
  12.     procedure FormCreate(Sender: TObject);
  13.     procedure FormPaint(Sender: TObject);
  14.   private
  15.     { Private declarations }
  16.   public
  17.     { Public declarations }
  18.   end;
  19.  
  20. var
  21.   Form1: TForm1;
  22. implementation
  23.  
  24. {$R *.DFM}
  25.  
  26. procedure TForm1.FormCreate(Sender: TObject);
  27. begin
  28.   UnlimitedBitmap1.Load_Bitmap_File;
  29. end;
  30.  
  31. procedure TForm1.FormPaint(Sender: TObject);
  32. begin
  33.   canvas.copyrect( rect( 0 , 0 , UnlimitedBitmap1.TheBMP.Width ,
  34.    UnlimitedBitmap1.TheBMP.Height ) , UnlimitedBitmap1.TheBMP.Canvas ,
  35.     rect( 0 , 0 , UnlimitedBitmap1.TheBMP.Width , UnlimitedBitmap1.TheBMP.Height ));
  36. end;
  37.  
  38. end.
  39.